<div class="left-column">
				<?php 
			     $navigate = array(
			          array('href'=>'/category/', 'text'=>'Места'),
			     );
			     if($this->currentCategory){
			          if($this->parent){
			               array_push($navigate, array('href'=>'/category/index/id/'.$this->parent['id'], 'text'=>$this->parent['name']));
			               ?>
			                    <script type="text/javascript">
			                         var currentCategoryId = <?=$this->parent['id']?>;
			                    </script>
			               <?php      
			          } else {  
			                    ?>
			                    <script type="text/javascript">
			                         var currentCategoryId = <?=$this->currentCategory['id']?>; 
			                    </script>
			               <?php
			          } 
			          array_push($navigate, array('href'=>'/category/index/id/'.$this->currentCategory['id'], 'text'=>$this->currentCategory['name']));
			     }else {
			               ?>
			                    <script type="text/javascript">
			                         var currentCategoryId = 0;
			                    </script>
			               <?php
			     }
			?>
<?=$this->navigate($navigate)?>
				<div class="asid-h">
					<div class="asid1">
						<?=$this->categorys()?>
				</div>
				<div class="asid2"> 
					<div class="box2"> 
						<div class="heading"> 
						<?=$this->rating($this->place->rating, $this->place->id, 'place')?>
						
							<h3><a href="#"><?=$this->place->name?></a></h3> 
							<a href="/place/edit/id/<?=$this->place->id?>">edit</a>
							<a href="/place/delete/id/<?=$this->place->id?>">delete</a>
							<a href="/place/parent/id/<?=$this->place->id?>">parent</a>
						</div> 
						<ul class="op-list"> 
						<?php foreach($this->categorys as $category):?>
							<li><a href="/category/index/id/<?=$category['id']?>"><?=$category['name']?></a></li> 
						<?php endforeach;?>
						</ul> 
						<div class="text"> 
							<?php if($this->album->getMainImage('s')):?>
								<div class="image"><img src="<?=$this->album->getMainImage('s')?>" alt="" /></div> 
							<?php endif;?>
							<?php //@todo картинка всё равно показывается если её нет, точнее рамка?>
							<div class="posew"> 
								<strong><?=$this->place->was?></strong>  
								<?php if(!$this->isWas):?>
									<a href="/place/was/item_id/<?=$this->place->id?>" class="was">Я там был</a>
								<?php else:?>
									<a href="#">Я там был</a>
								<?php endif;?>
							</div> 
							<div class="adres1"> 
								<span class="bold"><?=$this->place->address?><br /> 
								Режим работы:</span> <?=$this->place->work?><br />
								<?php $phones = explode(',', $this->place->phone);?>
								<?php $i=0; foreach($phones as $phone):?>
									<?php if($i==0):?>
										<span class="bold"><?=$phone?></span>
									<?php else:?>
										,<?=$phone?>
									<?php endif;?>
								<?php endforeach?>
								<br />
								<a href="<?=$this->place->site?>"><span class="it"><?=$this->place->site?></span></a> 
							</div> 
						</div> 
					</div> 
					<div class="box2"> 
						<div id="text2"> 
						<ul> 
							<li><a class="ad-open" href="#">Список адресов</a></li> 
						</ul>	
						</div>
						<?php if(count($this->childrens)):?>
						<div id="adress-inner"> 
						<?php foreach($this->childrens as $children):?>
							<div class="two1"> 
								<a href="/place/view/id/<?=$children->id?>"><?=$children->name?></a><br /> 
								<span class="bold"><?=$children->address?><br /> 
								Режим работы:</span> <?=$children->work?><br /> 
								<?php $phones = explode(',', $children->phone);?>
								<?php $i=0; foreach($phones as $phone):?>
									<?php if($i==0):?>
										<span class="bold"><?=$phone?></span>
									<?php else:?>
										,<?=$phone?> <br /> 
									<?php endif;?>
								<?php endforeach?>
								<br />  <a href="<?=$children->site?>"><span class="it"><?=$children->site?></span></a><br />  
							</div>
						<?php endforeach;?>
						
						
						<!-- 
							<div class="two2"> 
								<a href="#">Ресторан "Берлога"</a><br /> 
								<span class="bold">Балябина, 169<br /> 
								Режим работы:</span> c 9:00-02:00, <br />пт. и сб.: с 11:00-04:00;<br /> 
								<span class="bold">23-30-68</span>, 8-914-475-3258<br /> 
								<a href="#"><span class="it">www.domen.ru</span></a> 
							</div> 
						--></div> 
						<?php endif;?>
					</div> 
					<div class="box2"> 
						<div id="text3"> 
						<?=$this->place->about?>
						</div> 
					</div> 
					<?php if(count($this->album->getImages('s'))):?>
					<div class="box2">
						<div class="text3">
							<h2>Фотоальбом</h2>
							<ul>
							<?php foreach($this->album->getImages('s') as $image):?>
							<li><img src="<?=$image?>" class="img-foto" alt="" /></li>
							<?php endforeach;?>
							</ul>
						</div>
					</div>
					<?php endif;?>
					<div class="box2"> 
						<div id="in_topic"> 
						<h2>В этом месте</h2> 
						<ul> 
						<li class="num1"><strong><a href="#">Турниры</a></strong><span><a href="#">Чемпионат по бильярду</a></span></li> 
						<li class="num2"><strong><a href="#">Бильярд</a></strong><span><a href="#">Как правильно разбить пирамиду</a></span></li> 
						<li class="num3"><a href="#">Клуб "Диверсант"</a>,&nbsp;<a href="#">Любители бильярда</a></li> 
						</ul> 
						
						</div> 
						<div class="message-holder"> 
							<div class="message-inner"> 
								<div class="message"> 
										<a class="nick2" href="#">Nickname</a> 
										<span class="date">1 октября 2009</span> 
									<?=$this->rating($this->place->rating, $this->place->id, 'place')?>
									<!--<div class="rating"> 
										<a href="#" class="link-up-green">&nbsp;</a> 
										<a href="#" class="rat-g">+15</a> 
										<a href="#" class="link-down-g">&nbsp;</a> 
									</div>
									 --><ul> 
									<li class="bookmarks-yellow"><a class="bookm" href="#">избранное</a></li> 
									<li class="lenta-yellow"><a class="le" href="#">лента</a></li> 
									</ul> 
									
								</div> 
							</div> 
						</div> 
					</div><!-- 
					<div class="box2"> 
						<div class="message-holder"> 
							<div class="message-inner"> 
								<div class="message"> 
										<a class="nick2" href="#">Nickname</a> 
										<span class="date">1 октября 2009</span> 
									<div class="rating"> 
										<a href="#" class="link-up-g">&nbsp;</a> 
										<a href="#" class="rat-g">+15</a> 
										<a href="#" class="link-down-g">&nbsp;</a>	
									</div> 
									<ul> 
									<li class="bookmarks-grey"><a class="bookm" href="#">избранное</a></li> 
									<li class="lenta-grey"><a class="le" href="#">лента</a></li> 
									</ul> 
								</div> 
							</div> 
						</div> 
					</div> 
					--><div class="box2"> 
						<div class="box-comment"> 
								<h2>Отзывы</h2> 
								<ul><li><a href="/comment/add/id/0/item/place/" class="answer">Оставить отзыв</a></li></ul> 
								  <div class="comment-inner example" style="display: none"> 
									<div class="box-nick"> 
											<div class="image3"><img src="/images/ico-42.gif" alt="" /></div> 
											<a href="#">Nickname</a> 
									</div> 
									<form action="#" method="<?=$this->commentForm->getMethod()?>" > 
										<ul class="pole-text"> 
											<li><?=$this->commentForm->getElement('message')?></li> 
											<li><?=$this->commentForm->getElement('item_id')?></li> 
											<li><?=$this->commentForm->getElement('user_id')?></li>
											<li><?=$this->commentForm->getElement('submit')?></li> 
										</ul> 
									</form> 
								</div>
								<?=$this->comments($this->comments->toArray())?>
					</div> 
				</div> 
			</div> 		
	</div>
	</div>
	<script type="text/javascript">
		$('.answer').click(function(){
			//$('.commentForm').hide();
			action = $(this).attr('href');
			
			$('.commentForm').hide();
			$('.example').clone(true).insertAfter(this).show().removeClass('example').addClass('commentForm').children('form').attr('action',action);
			return false;
		});
		$('.rat').live('click', function(){
			href = $(this).attr('href');
			element  = this;
			if(href!='#'){
				$.ajax({
					   url: href,
					   success: function(msg){
					     $(element).parent().replaceWith(msg);
					   }
					 });
			}
			return false;
		})
		$('.was').click(function(){
			href = $(this).attr('href');
			element  = this;
			if(href!='#'){
				$.ajax({
					   url: href,
					   success: function(msg){
					     $(element).attr('href','');
					   }
					 });
			}
			return false;
		})
	</script>